package com.waters321.rock.orm.enums;

import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IEnum;

public enum TaskStatusEnum implements IEnum {
  STOPED((byte) 0, "已停止"), RUNNING((byte) 1, "运行中");

  private byte value;
  private String desc;

  TaskStatusEnum(final byte value, final String desc) {
    this.value = value;
    this.desc = desc;
  }

  @Override
  public Serializable getValue() {
    return this.value;
  }

  public String getDesc() {
    return this.desc;
  }
}
